package singleton.myExam;

public class ConfMain {

	private static int sint=0;
	   static {
	       sint = 100;
	       System.out.println("sint:" + sint);
	   }
	   private int nint = 0;
	   
       public static int sTotal=0; 
       public int nTotal=0; 
       static { 
           sTotal += 10; 
           //nTotal += 10; //Static initializer 사용시 사용할 수 없다는 메시지 발생 
       }
       public void StaticSample() { 
    	   System.out.println("Basic Constructor!! sTotal : " + sTotal); 
           sTotal++; 
           nTotal++; 
           System.out.println("Basic Constructor!! sTotal : " + sTotal); 
           System.out.println("Basic Constructor!! nTotal : " + nTotal); 
       }        
	   public static void main(String[] args) {
		   ConfMain s = null;
		   sTotal++; 
		   ConfMain dif = new ConfMain();
		   dif.StaticSample();
		   dif.StaticSample();
		   dif.StaticSample();
		   dif.StaticSample();
	   }

}
